function get_date(source){
    var date=new Date(source);
    var year=date.getFullYear();
    var month=formatDate(date.getMonth()+1);
    var day=formatDate(date.getDate());
    return year+"-"+month+"-"+day;
}

function formatDate(value){
    if(value<10)
    {
        return "0"+value;
    }else{
        return value;
    }
}
